<%@ page language="java" contentType="text/html;charset=UTF-8" %><%@ include file="../../inc/global.jsp" 
%>
<div class="goodsList">
<div class="addGoodsForm">
<select id="brand_id" title="<fmt:message key="message.brand.choice" />">
<option value=""><fmt:message key="message.brand.choice" /></option>
<c:forEach var="brand" items="${brandList}">
<option value="${brand.id}">${brand.name}</option>
</c:forEach>
</select>
<select id="category_id" title="<fmt:message key="message.category.choice" />">
<option value=""><fmt:message key="message.category.choice" /></option>
<c:forEach var="category" items="${categoryList}">
<option value="${category.id}">${category.name}</option>
</c:forEach>
</select>
<input type="text" id="goods_name" name="goods_name" title="<fmt:message key="message.goods.name"/>" value="<fmt:message key="message.goods.name"/>" class="addGoodsInput"/>
<input type="text" id="goods_display_name" name="goods_display_name" title="<fmt:message key="message.goods.displayName"/>" value="<fmt:message key="message.goods.displayName"/>" class="addGoodsInput"/>
<input type="button" id="add_goods" name="add_goods" value="添加型号" />
<span id="remind"></span>
</div>
<c:if test="${empty goodsVOList}">
<div style="color:#000; text-align:center; margin:21px 0px;"><a href="###" onclick="str.showBrandAndCategory();">没有相关商品，请重新选择！</a></div>
</c:if>
<table>
<c:if test="${!empty goodsVOList}">
<tr>
<th>票据</th>
<th>品牌</th>
<th>种类</th>
<th>型号</th>
<th>库存</th>
</tr>
<c:forEach var="item" items="${goodsVOList}">
<tr id="${item.id}">
<td>${item.displayName}</td>
<td>${item.brand.name}</td>
<td>${item.category.name}</td>
<td>${item.name}</td>
<td>${item.inventoryCount}
<input type="hidden" name="count" id="count_${item.id}" value="${item.inventoryCount}" />
</td>
</tr>
</c:forEach>
</c:if>
</table>
</div>